/**
 * 存放一些由一级页面进入二级及多级页面，不需要在菜单中展示，
 * 同时也不需要根据权限加载的路由。如：列表详情页面
 * 二级路由使用绝对路由 （path开头加/)
 * style：按顺序配置
 * path
 * name, 必填，否则无法 keep-alive
 * component
 * meta {}对象
 * @param title: String'工作台', 默认的标题
 * @param cacheable: Boolearn, keep-alive
 * ## 详情配置为false
 * @param icon: String'menu-dashborad', 图标
 */
const Layout = () => import('@/layouts/Layout.vue')
import renameComponent from '@/layouts/renameComponent'
import { defineAsyncComponent } from 'vue'

export const extraRoutes = [
  {
    path: '/extra-routes',
    component: Layout,
    children: [
      // 车辆管理
      ...[
        {
          path: '/car-manage/detail/:id',
          name: 'CarManageDetail',
          component: () => import('@/views/assets/car/car-manage/detail/index.vue'),
          meta: {
            title: '车辆详情',
            cacheable: false,
          },
        },
        {
          path: '/car-manage/create',
          name: 'CarManageForm_Create',
          component: renameComponent(
            'CarManageForm_Create',
            defineAsyncComponent(() => import('@/views/assets/car/car-manage/form/index.vue'))
          ),
          meta: {
            title: '车辆新增',
          },
        },
        {
          path: '/car-manage/edit/:id',
          name: 'CarManageForm_Edit',
          component: renameComponent(
            'CarManageForm_Edit',
            defineAsyncComponent(() => import('@/views/assets/car/car-manage/form/index.vue'))
          ),
          meta: {
            title: '车辆编辑',
          },
        },
      ],
      // 车型
      ...[
        {
          path: '/car-model/create',
          name: 'CarModelForm_Create',
          component: renameComponent(
            'CarModelForm_Create',
            defineAsyncComponent(() => import('@/views/assets/car/car-model/form/index.vue'))
          ),
          meta: {
            title: '车型新增',
          },
        },
        {
          path: '/car-model/edit/:id',
          name: 'CarModelForm_Edit',
          component: renameComponent(
            'CarModelForm_Edit',
            defineAsyncComponent(() => import('@/views/assets/car/car-model/form/index.vue'))
          ),
          meta: {
            title: '车型编辑',
          },
        },
        {
          path: '/car-model/detail/:id',
          component: () => import('@/views/assets/car/car-model/detail/index.vue'),
          name: 'CarModel_Detail',
          meta: {
            title: '车型详情',
            cacheable: false,
          },
        },
      ],
      // 员工
      ...[
        {
          path: '/staff/create/:organizationId',
          name: 'StaffForm_Create',
          component: renameComponent(
            'StaffForm_Create',
            defineAsyncComponent(() => import('@/views/merchant/organization/staff/form/form.vue'))
          ),
          meta: {
            title: '新增员工',
          },
        },
        {
          path: '/staff/edit/:id',
          name: 'StaffForm_Edit',
          component: renameComponent(
            'StaffForm_Edit',
            defineAsyncComponent(() => import('@/views/merchant/organization/staff/form/form.vue'))
          ),
          meta: {
            title: '编辑员工',
          },
        },
        {
          path: '/staff/detail/:id',
          component: () => import('@/views/merchant/organization/staff/detail/detail.vue'),
          name: 'CarModelDetail',
          meta: {
            title: '员工详情',
            cacheable: false,
          },
        },
      ],
      // 门店管理
      ...[
        {
          path: '/merchant/store/create',
          name: 'StoreManageForm_Create',
          component: renameComponent(
            'StoreManageForm_Create',
            defineAsyncComponent(() => import('@/views/merchant/store/form/index.vue'))
          ),
          meta: {
            title: '新增门店',
          },
        },
        {
          path: '/merchant/store/edit/:id',
          name: 'StoreManageForm_Edit',
          component: renameComponent(
            'StoreManageForm_Edit',
            defineAsyncComponent(() => import('@/views/merchant/store/form/index.vue'))
          ),
          meta: {
            title: '编辑门店',
          },
        },
        {
          path: '/merchant/store/detail/:id',
          component: () => import('@/views/merchant/store/detail/index.vue'),
          name: 'StoreManageDetail',
          meta: {
            title: '门店详情',
            cacheable: false,
          },
        },
      ],
      // 商户管理-新增修改角色
      ...[
        {
          path: '/merchant/role/create',
          name: 'MerchantRoleForm_Create',
          component: renameComponent(
            'MerchantRoleForm_Create',
            defineAsyncComponent(() => import('@/views/merchant/role/form/index.vue'))
          ),
          meta: {
            title: '新增角色',
          },
        },
        {
          path: '/merchant/role/edit/:id',
          name: 'MerchantRoleForm_Edit',
          component: renameComponent(
            'MerchantRoleForm_Edit',
            defineAsyncComponent(() => import('@/views/merchant/role/form/index.vue'))
          ),
          meta: {
            title: '编辑角色',
          },
        },
        {
          path: '/merchant/role/detail/:id',
          name: 'MerchantRoleDetail',
          component: () => import('@/views/merchant/role/detail/index.vue'),
          meta: {
            title: '角色详情',
            cacheable: false,
          },
        },
      ],
      // 车机管理
      ...[
        {
          path: '/car-vehicle/create',
          name: 'CarVehicleForm_Create',
          component: renameComponent(
            'CarVehicleForm_Create',
            defineAsyncComponent(() => import('@/views/assets/device/car-vehicle/form/index.vue'))
          ),
          meta: {
            title: '新增GPS',
          },
        },
        {
          path: '/car-vehicle/edit/:id',
          name: 'CarVehicleForm_Edit',
          component: renameComponent(
            'CarVehicleForm_Edit',
            defineAsyncComponent(() => import('@/views/assets/device/car-vehicle/form/index.vue'))
          ),
          meta: {
            title: '编辑GPS',
          },
        },
        {
          path: '/car-vehicle/detail/:id',
          name: 'CarVehicleDetail',
          component: () => import('@/views/assets/device/car-vehicle/detail/index.vue'),
          meta: {
            title: '设备详情',
            cacheable: false,
          },
        },
      ],
      // 维修
      ...[
        {
          path: '/car-repair/create/:id?',
          name: 'CarRepairForm_Create',
          component: renameComponent(
            'CarRepairForm_Create',
            defineAsyncComponent(() => import('@/views/assets/operation/car-repair/form/index.vue'))
          ),
          meta: {
            title: '新增车辆维修',
          },
        },
        {
          path: '/car-repair/edit/:id',
          name: 'CarRepairForm_Edit',
          component: renameComponent(
            'CarRepairForm_Edit',
            defineAsyncComponent(() => import('@/views/assets/operation/car-repair/form/index.vue'))
          ),
          meta: {
            title: '编辑维修',
          },
        },
        {
          path: '/car-repair/start/:rey',
          name: 'CarRepairForm_Start',
          component: renameComponent(
            'CarRepairForm_Start',
            defineAsyncComponent(() => import('@/views/assets/operation/car-repair/form/index.vue'))
          ),
          meta: {
            title: '开始维修',
          },
        },
        {
          path: '/car-repair/end/:rey',
          name: 'CarRepairForm_End',
          component: renameComponent(
            'CarRepairForm_End',
            defineAsyncComponent(() => import('@/views/assets/operation/car-repair/form/index.vue'))
          ),
          meta: {
            title: '维修完成',
          },
        },
        {
          path: '/car-repair/detail/:id',
          name: 'CarRepairDetail',
          component: () => import('@/views/assets/operation/car-repair/detail/index.vue'),
          meta: {
            title: '维修信息',
            cacheable: false,
          },
        },
      ],
      // 车辆违章
      ...[
        {
          path: '/car-violation/create/:id?',
          name: 'CarViolationForm_Create',
          component: renameComponent(
            'CarViolationForm_Create',
            defineAsyncComponent(() => import('@/views/assets/operation/car-violation/form/index.vue'))
          ),
          meta: {
            title: '新增车辆违章',
          },
        },
        {
          path: '/car-violation/edit/:id',
          name: 'CarViolationForm_Edit',
          component: renameComponent(
            'CarViolationForm_Edit',
            defineAsyncComponent(() => import('@/views/assets/operation/car-violation/form/index.vue'))
          ),
          meta: {
            title: '编辑违章',
          },
        },
        {
          path: '/car-violation/detail/:id',
          name: 'CarViolationDetail',
          component: () => import('@/views/assets/operation/car-violation/detail/index.vue'),
          meta: {
            title: '违章信息',
            cacheable: false,
          },
        },
      ],
      // 车辆保养
      ...[
        {
          path: '/car-maintenance/create/:id?',
          name: 'CarMaintenanceForm_Create',
          component: renameComponent(
            'CarMaintenanceForm_Create',
            defineAsyncComponent(() => import('@/views/assets/operation/car-maintenance/form/index.vue'))
          ),
          meta: {
            title: '新增车辆保养',
          },
        },
      ],
      // 车辆保险
      ...[
        {
          path: '/car-insure/create',
          component: () => import('@/views/assets/operation/car-insure/form/index.vue'),
          name: 'CarInsureForm_Create',
          meta: {
            title: '新增车辆保险',
          },
        },
        {
          path: '/car-insure/detail/:id',
          component: () => import('@/views/assets/operation/car-insure/detail/index.vue'),
          name: 'CarInsureDetail',
          meta: {
            title: '车辆保险详情',
            cacheable: false,
          },
        },
      ],
      // 车型价格
      ...[
        {
          path: '/car-model-price/create/:templateSort',
          name: 'CarModelPriceForm_Create',
          component: renameComponent(
            'CarModelPriceForm_Create',
            defineAsyncComponent(() => import('@/views/business/price/car-model/form/index.vue'))
          ),
          meta: {
            title: '新增车型价格',
          },
        },
        {
          path: '/car-model-price/edit/:id',
          name: 'CarModelPriceForm_Edit',
          component: renameComponent(
            'CarModelPriceForm_Edit',
            defineAsyncComponent(() => import('@/views/business/price/car-model/form/index.vue'))
          ),
          meta: {
            title: '编辑车型价格',
          },
        },
      ],
      // 通用费用
      ...[
        {
          path: '/common-price/create',
          name: 'CommonPriceForm_Create',
          component: renameComponent(
            'CommonPriceForm_Create',
            defineAsyncComponent(() => import('@/views/business/price/common/form/index.vue'))
          ),
          meta: {
            title: '新增通用费用',
          },
        },
        {
          path: '/common-price/edit/:id',
          name: 'CommonPriceForm_Edit',
          component: renameComponent(
            'CommonPriceForm_Edit',
            defineAsyncComponent(() => import('@/views/business/price/common/form/index.vue'))
          ),
          meta: {
            title: '编辑通用费用',
          },
        },
      ],
      // 电子围栏
      ...[
        {
          path: '/vehice-fence/create',
          name: 'FenceForm_Create',
          component: renameComponent(
            'FenceForm_Create',
            defineAsyncComponent(() => import('@/views/business/fence/form/index.vue'))
          ),
          meta: {
            title: '新增围栏',
          },
        },
        {
          path: '/vehice-fence/edit/:id',
          name: 'FenceForm_Edit',
          component: renameComponent(
            'FenceForm_Edit',
            defineAsyncComponent(() => import('@/views/business/fence/form/index.vue'))
          ),
          meta: {
            title: '编辑围栏',
          },
        },
      ],
      // 订单工单
      ...[
        {
          path: '/work-order/detail/:id',
          name: 'WorkOrderDetail',
          component: () => import('@/views/business/workOrder/order/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
      ],
      // 新增渠道
      ...[
        {
          path: '/channel-setting/create',
          name: 'ChannelForm_Create',
          component: renameComponent(
            'ChannelForm_Create',
            defineAsyncComponent(() => import('@/views/business/channel/ota/form/index.vue'))
          ),
          meta: {
            title: '新增渠道',
          },
        },
        // 编辑渠道
        {
          path: '/channel-setting/edit/:id',
          name: 'ChannelForm_Edit',
          component: renameComponent(
            'ChannelForm_Edit',
            defineAsyncComponent(() => import('@/views/business/channel/ota/form/index.vue'))
          ),
          meta: {
            title: '编辑渠道',
          },
        },
      ],
      // 供应商管理
      ...[
        {
          path: '/supplier-manage/create',
          name: 'SupplierForm_Create',
          component: renameComponent(
            'SupplierForm_Create',
            defineAsyncComponent(() => import('@/views/market/bazaar/supplier/form/index.vue'))
          ),
          meta: {
            title: '新增供应商',
          },
        },
        {
          path: '/supplier-manage/edit/:id',
          name: 'SupplierForm_Edit',
          component: renameComponent(
            'SupplierForm_Edit',
            defineAsyncComponent(() => import('@/views/market/bazaar/supplier/form/index.vue'))
          ),
          meta: {
            title: '编辑',
          },
        },
        {
          path: '/supplier-manage/detail/:id',
          name: 'SupplierDetail',
          component: () => import('@/views/market/bazaar/supplier/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
      ],
      // 同行管理
      ...[
        {
          path: '/peer-manage/create',
          name: 'PeerForm_Create',
          component: renameComponent(
            'PeerForm_Create',
            defineAsyncComponent(() => import('@/views/market/bazaar/peer/form/index.vue'))
          ),
          meta: {
            title: '新增同行',
          },
        },
        {
          path: '/peer-manage/edit/:id',
          name: 'PeerForm_Edit',
          component: renameComponent(
            'PeerForm_Edit',
            defineAsyncComponent(() => import('@/views/market/bazaar/peer/form/index.vue'))
          ),
          meta: {
            title: '编辑',
          },
        },
        {
          path: '/peer-manage/detail/:id',
          name: 'PeerDetail',
          component: () => import('@/views/market/bazaar/peer/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
      ],
      // 自驾短租管理
      ...[
        {
          path: '/short-order/create',
          name: 'ShortOrderForm',
          component: () => import('@/views/order/short-order/form/index.vue'),
          meta: {
            title: '新增自驾短租',
          },
        },
        {
          path: '/short-order/edit/:id',
          name: 'ShortOrderEdit',
          component: () => import('@/views/order/short-order/form/edit.vue'),
          meta: {
            title: '编辑自驾短租',
          },
        },
        {
          path: '/short-order/giveCar/:id',
          name: 'ShortOrderGiveCar',
          component: () => import('@/views/order/short-order/give-car.vue'),
          meta: {
            title: '交车',
          },
        },
        {
          path: '/short-order/returnCar/:id',
          name: 'ShortOrderReturnCar',
          component: () => import('@/views/order/short-order/return-car.vue'),
          meta: {
            title: '还车',
          },
        },
        {
          path: '/short-order/reletOrder/:id',
          name: 'ShortOrderReletOrder',
          component: () => import('@/views/order/short-order/relet-order.vue'),
          meta: {
            title: '续租',
          },
        },
        {
          path: '/short-order/changeCar/:id',
          name: 'ShortOrderChangeCar',
          component: () => import('@/views/order/short-order/change-car.vue'),
          meta: {
            title: '换车',
          },
        },
        {
          path: '/short-order/detail/:id',
          name: 'ShortOrderDetail',
          component: () => import('@/views/order/short-order/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
        {
          path: '/short-order/addFees/:id',
          name: 'ShortOrderAddFees',
          component: () => import('@/views/order/short-order/add-fees.vue'),
          meta: {
            title: '添加费用',
          },
        },
      ],
      // 自驾长租管理
      ...[
        {
          path: '/long-order/create',
          name: 'LongOrderForm',
          component: () => import('@/views/order/long-order/form/index.vue'),
          meta: {
            title: '新增自驾长租',
          },
        },
        {
          path: '/long-order/edit/:id',
          name: 'LongOrderEdit',
          component: () => import('@/views/order/long-order/form/edit.vue'),
          meta: {
            title: '编辑自驾长租',
          },
        },
        {
          path: '/long-order/giveCar/:id',
          name: 'LongOrderGiveCar',
          component: () => import('@/views/order/long-order/give-car.vue'),
          meta: {
            title: '交车',
          },
        },
        {
          path: '/long-order/returnCar/:id',
          name: 'LongOrderReturnCar',
          component: () => import('@/views/order/long-order/return-car.vue'),
          meta: {
            title: '还车',
          },
        },
        {
          path: '/long-order/reletOrder/:id',
          name: 'LongOrderReletOrder',
          component: () => import('@/views/order/long-order/relet-order.vue'),
          meta: {
            title: '续租',
          },
        },
        {
          path: '/long-order/changeCar/:id',
          name: 'LongOrderChangeCar',
          component: () => import('@/views/order/long-order/change-car.vue'),
          meta: {
            title: '换车',
          },
        },
        {
          path: '/long-order/detail/:id',
          name: 'LongOrderDetail',
          component: () => import('@/views/order/long-order/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
        {
          path: '/long-order/addFees/:id',
          name: 'LongOrderAddFees',
          component: () => import('@/views/order/long-order/add-fees.vue'),
          meta: {
            title: '添加费用',
          },
        },
      ],
      // ETC订单详情
      ...[
        {
          path: '/etc-order/detail/:id',
          name: 'EtcOrderDetail',
          component: () => import('@/views/order/etc-order/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
      ],
      // 个人会员
      ...[
        {
          path: '/member-person/create',
          name: 'MemberPersonForm_Create',
          component: renameComponent(
            'MemberPersonForm_Create',
            defineAsyncComponent(() => import('@/views/market/bazaar/member/form/index.vue'))
          ),
          meta: {
            title: '新增个人会员',
          },
        },
        {
          path: '/member-person/edit/:id',
          name: 'MemberPersonForm_Edit',
          component: renameComponent(
            'MemberPersonForm_Edit',
            defineAsyncComponent(() => import('@/views/market/bazaar/member/form/index.vue'))
          ),
          meta: {
            title: '编辑个人会员',
          },
        },
        {
          path: '/member-person/detail/:id',
          name: 'MemberPersonDetail',
          component: () => import('@/views/market/bazaar/member/detail/index.vue'),
          meta: {
            title: '个人会员详情',
            cacheable: false,
          },
        },
      ],
      // 新增企业客户
      ...[
        {
          path: '/client-info/create',
          name: 'EpClientForm_Create',
          component: renameComponent(
            'EpClientForm_Create',
            defineAsyncComponent(() => import('@/views/market/bazaar/clientInfo/form/index.vue'))
          ),
          meta: {
            title: '新增企业客户',
          },
        },
        {
          path: '/client-info/edit/:id',
          name: 'EpClientForm_Edit',
          component: renameComponent(
            'EpClientForm_Edit',
            defineAsyncComponent(() => import('@/views/market/bazaar/clientInfo/form/index.vue'))
          ),
          meta: {
            title: '编辑企业客户',
          },
        },
        {
          path: '/client-info/detail/:id',
          name: 'EpClientDetail',
          component: () => import('@/views/market/bazaar/clientInfo/detail/index.vue'),
          meta: {
            title: '企业客户详情',
            cacheable: false,
          },
        },
      ],
      // 账单管理
      ...[
        {
          path: '/short-order/bill-info/detail/:id',
          name: 'ShortOrderBillDetail',
          component: () => import('@/views/finance/bill/shortOrder/detail/index.vue'),
          meta: {
            title: '短租账单详情',
            cacheable: false,
          },
        },
        // 车辆购置费账单详情
        {
          path: '/car-purchase/detail/:id',
          name: 'CarPurchaseDetail',
          component: () => import('@/views/finance/bill/car-purchase/detail/index.vue'),
          meta: {
            title: '车辆购置费账单详情',
          },
        },
        {
          path: '/long-order/bill-info/detail/:id',
          name: 'LongOrderBillDetail',
          component: () => import('@/views/finance/bill/longOrder/detail/index.vue'),
          meta: {
            title: '长租账单详情',
          },
        },
      ],
      //运维账单
      ...[
        {
          path: '/maintenance-info/detail/:id',
          name: 'MaintenanceDetail',
          meta: {
            title: '运维账单',
          },
          component: () => import('@/views/finance/bill/maintenance/detail/index.vue'),
        },
      ],
      //违章账单
      ...[
        {
          path: '/violation/detail/:id',
          name: 'ViolationDetail',
          meta: {
            title: '违章账单',
          },
          component: () => import('@/views/finance/bill/violation/detail/index.vue'),
        },
      ],
      // 车辆年检
      ...[
        {
          path: '/car-inspect/create/:id',
          name: 'CarInspectForm_Create',

          component: renameComponent(
            'CarInspectForm_Create',
            defineAsyncComponent(() => import('@/views/assets/operation/car-inspect/form/index.vue'))
          ),
          meta: {
            title: '新增车辆年检',
          },
        },
      ],
      // 订单同步记录
      ...[
        {
          path: '/order-sync/create',
          name: 'OrderSyncForm',
          component: () => import('@/views/business/channel/order-sync/form/index.vue'),
          meta: {
            title: '订单同步记录',
          },
        },
      ],
      // 对账管理-车辆购置费
      ...[
        {
          path: '/car-purchase/confirmCost/:id',
          name: 'CarPurchaseConfirmCost',
          component: () => import('@/views/finance/reconciliation/car-purchase/detail/index.vue'),
          meta: {
            title: '确认对账',
          },
        },
      ],
      // 车辆借调
      ...[
        {
          path: '/car-transfer/detail/:id',
          name: 'CarTransferDetail',
          component: () => import('@/views/assets/operation/car-transfer/detail/index.vue'),
          meta: {
            title: '借调信息',
            cacheable: false,
          },
        },
        {
          path: '/car-transfer/create',
          name: 'CarTransferForm_Create',
          component: () => import('@/views/assets/operation/car-transfer/form/index.vue'),
          meta: {
            title: '新增车辆借调',
          },
        },
      ],
      // 借调账单 - 详情
      ...[
        {
          path: '/finance/bill/car-transfer-bill/detail/:id',
          name: 'carTransferBillDetail',
          component: () => import('@/views/finance/bill/transferBill/detail/index.vue'),
          meta: {
            title: '借调账单详情',
            cacheable: false,
          },
        },
      ],
      // 调车对账 - 确认对账
      ...[
        {
          path: '/finance/reconciliation/transferReconciliation/reconciliation/:id',
          name: 'TransferReconciliationConfirm',
          component: () => import('@/views/finance/reconciliation/transferReconciliation/detail/index.vue'),
          meta: {
            title: '确认对账',
            cacheable: false,
          },
        },
      ],
      // 电子合同-合同模板
      ...[
        {
          path: '/contract/template/create',
          name: 'ContractTemplateForm_Create',
          component: renameComponent(
            'ContractTemplateForm_Create',
            defineAsyncComponent(() => import('@/views/business/contract/contract-template/form/index.vue'))
          ),
          meta: {
            title: '新增合同模板',
          },
        },
        {
          path: '/contract/template/edit/:id',
          name: 'ContractTemplateForm_Edit',
          component: renameComponent(
            'ContractTemplateForm_Edit',
            defineAsyncComponent(() => import('@/views/business/contract/contract-template/form/index.vue'))
          ),
          meta: {
            title: '编辑合同模板',
          },
        },
        {
          path: '/contract/template/detail/:id',
          name: 'ContractTemplateDetail',
          component: () => import('@/views/business/contract/contract-template/detail/index.vue'),
          meta: {
            title: '合同模板详情',
          },
        },
      ],
      // 消息中心-业务通知模板
      ...[
        {
          path: '/message/business-notice/detail/:id',
          name: 'MessageTemplateDetail',
          component: () => import('@/views/business/message/business-notice/detail/index.vue'),
          meta: {
            title: '业务通知模板详情',
          },
        },
        {
          path: '/message/business-notice/edit/:id',
          name: 'MessageTemplateForm_Edit',
          component: () => import('@/views/business/message/business-notice/form/index.vue'),
          meta: {
            title: '编辑业务通知模板',
          },
        },
      ],
      // 运营成本-新增编辑报销单、付款单
      ...[
        {
          path: '/operate-cost/create-apply',
          name: 'OperateCostApplyForm_Create',
          component: renameComponent(
            'OperateCostApplyForm_Create',
            defineAsyncComponent(() => import('@/views/business/operate-cost/apply-form/index.vue'))
          ),
          meta: {
            title: '新增报销单',
          },
        },
        {
          path: '/operate-cost/edit-apply/:id',
          name: 'OperateCostApplyForm_Edit',
          component: renameComponent(
            'OperateCostApplyForm_Edit',
            defineAsyncComponent(() => import('@/views/business/operate-cost/apply-form/index.vue'))
          ),
          meta: {
            title: '修改报销单',
          },
        },
        // 重新申请
        {
          path: '/operate-cost/again-apply/:id',
          name: 'OperateCostAgainApply',
          component: renameComponent(
            'OperateCostAgainApply',
            defineAsyncComponent(() => import('@/views/business/operate-cost/apply-form/index.vue'))
          ),
          meta: {
            title: '重新申请报销单',
          },
        },
        {
          path: '/operate-cost/create-pay',
          name: 'OperateCostPayForm_Create',
          component: renameComponent(
            'OperateCostPayForm_Create',
            defineAsyncComponent(() => import('@/views/business/operate-cost/pay-form/index.vue'))
          ),
          meta: {
            title: '新增付款单',
          },
        },
        {
          path: '/operate-cost/edit-pay/:id',
          name: 'OperateCostPayForm_Edit',
          component: renameComponent(
            'OperateCostPayForm_Edit',
            defineAsyncComponent(() => import('@/views/business/operate-cost/pay-form/index.vue'))
          ),
          meta: {
            title: '修改付款单',
          },
        },
        {
          path: '/operate-cost/again-pay/:id',
          name: 'OperateCostAgainPay',
          component: renameComponent(
            'OperateCostAgainPay',
            defineAsyncComponent(() => import('@/views/business/operate-cost/pay-form/index.vue'))
          ),
          meta: {
            title: '重新申请付款单',
          },
        },
        // 审批支出单
        {
          path: '/operate-cost/check-info/:id',
          name: 'OperateCostCheckInfo',
          component: renameComponent(
            'OperateCostCheckInfo',
            defineAsyncComponent(() => import('@/views/business/operate-cost/detail/index.vue'))
          ),
          meta: {
            title: '审批',
          },
        },
        {
          path: '/operate-cost/detail/:id',
          name: 'OperateCostDetail',
          component: renameComponent(
            'OperateCostDetail',
            defineAsyncComponent(() => import('@/views/business/operate-cost/detail/index.vue'))
          ),
          meta: {
            title: '支出单详情',
          },
        },
      ],
      // 资产-设备-车辆信息同步-操作记录
      ...[
        {
          path: '/equipment/car-info/operate-records/:id',
          name: 'CarInfoOperateRecords',
          component: () => import('@/views/assets/equipment/car-info/operate-records.vue'),
          meta: {
            title: '操作记录',
            cacheable: false,
          },
        },
        {
          path: '/value-added/etc/hrhc-car',
          name: 'HrhcCar',
          component: () => import('@/views/assets/equipment/hrhc-car.vue'),
          meta: {
            title: 'ETC发行与变更',
          },
          permission: 'svms:asstes:equipment:hrhc-car',
        },
        {
          path: '/value-added/etc/quantum/:type',
          name: 'Quantum',
          meta: {
            title: '量子',
          },
          permission: 'svms:asstes:equipment:quantum',
          component: () => import('@/views/assets/equipment/quantum.vue'),
        },
      ],
      // 车载box数据查询
      ...[
        {
          path: '/car-box-query/detail/:id',
          name: 'CarBoxQueryDetail',
          component: () => import('@/views/assets/device/car-box-query/detail/index.vue'),
          meta: {
            title: '车载box数据查询详情',
            cacheable: false,
          },
        },
      ],
      // 虚拟钥匙控车单
      ...[
        {
          path: '/car-virtual-key/detail/:id',
          name: 'CarVirtualKeyDetail',
          component: () => import('@/views/order/car-virtual-key/detail/index.vue'),
          meta: {
            title: '虚拟钥匙控车单详情',
            cacheable: false,
          },
        },
        {
          path: '/car-virtual-key/create',
          name: 'CarVirtualKeyForm_Create',
          component: renameComponent(
            'CarVirtualKeyForm_Create',
            defineAsyncComponent(() => import('@/views/order/car-virtual-key/form/index.vue'))
          ),
          meta: {
            title: '虚拟钥匙控车单新增',
          },
        },
        {
          path: '/car-virtual-key/edit/:id',
          name: 'CarVirtualKeyForm_Edit',
          component: renameComponent(
            'CarVirtualKeyForm_Edit',
            defineAsyncComponent(() => import('@/views/order/car-virtual-key/form/index.vue'))
          ),
          meta: {
            title: '虚拟钥匙控车单编辑',
          },
        },
      ],
      // 车载box安装
      ...[
        {
          path: '/car-box-install/detail/:id',
          name: 'CarBoxInstallDetail',
          component: () => import('@/views/assets/device/car-box-install/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
      ],
      // 车载box使用
      ...[
        {
          path: '/car-box-use/detail/:id',
          name: 'CarBoxUseDetail',
          component: () => import('@/views/assets/device/car-box-use/detail/index.vue'),
          meta: {
            title: '详情',
            cacheable: false,
          },
        },
        {
          path: '/car-box-use/location/:id',
          name: 'CarBoxUseLocation',
          component: () => import('@/views/assets/device/car-box-use/components/location.vue'),
          meta: {
            title: '车辆位置',
            cacheable: false,
          },
        },
        {
          path: '/car-box-use/track/:id',
          name: 'CarBoxUse_track',
          component: () => import('@/views/assets/device/car-box-use/components/track.vue'),
          meta: {
            title: '车辆轨迹',
          },
        },
      ],
      // 聚合支付服务
      ...[
        {
          path: '/value-added/thirdPayment/aggregation/apply/:id',
          name: 'AggregationApply',
          component: () => import('@/views/value-added/thirdPayment/aggregation/components/apply.vue'),
          meta: {
            title: '聚合支付-申请开通',
            cacheable: false,
          },
        },
        {
          path: '/value-added/thirdPayment/aggregation/record',
          name: 'AggregationRecord',
          component: () => import('@/views/value-added/thirdPayment/aggregation/components/record.vue'),
          meta: {
            title: '聚合支付-申请记录',
            cacheable: false,
          },
        },
        {
          path: '/value-added/thirdPayment/aggregation/detail/:id',
          name: 'AggregationDetail',
          component: () => import('@/views/value-added/thirdPayment/aggregation/detail/index.vue'),
          meta: {
            title: '申请记录-详情',
            cacheable: false,
          },
        },
      ],
    ],
  },
]
